Laravel get only the Ids of an eloquent arrays

77

Laravel get only the Ids of an eloquent arrays -

$post_ids = Post::pluck('id')->toArray();

Comments

Submit
0 Comments